package cn.dt.basic.query;

import lombok.Data;

/**
 * author:代伟
 * date:2022/6/8 14:53
 */
@Data
public class BaseQuery {
    /*当前页数*/
    private Integer currentPage =1;
    /*分页总条数*/
    private Integer pageSize = 5;
    //关键字查询
    private String keyword;
    public Integer getStart(){
        return (this.currentPage - 1)*pageSize;
    }

}
